<?php /* Smarty version 2.6.16, created on 2009-04-16 03:19:40
         compiled from Browse.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'language', 'Browse.html', 3, false),array('function', 'url', 'Browse.html', 55, false),array('function', 'img', 'Browse.html', 56, false),array('function', 'module', 'Browse.html', 167, false),array('modifier', 'process_code', 'Browse.html', 68, false),array('modifier', 'escape', 'Browse.html', 68, false),array('modifier', 'video_time', 'Browse.html', 70, false),)), $this); ?>
<?php if ($this->_tpl_vars['bIsDeleted']): ?>
<div class="message_info">
	<?php echo smarty_function_language(array('text' => 'Mod_Video.video_deleted'), $this);?>

</div>
<?php endif;  if ($this->_tpl_vars['bIsFeatured']): ?>
<div class="message_info">
	<?php echo smarty_function_language(array('text' => 'Mod_Video.feature.done'), $this);?>

</div>
<?php endif; ?>

<?php if (! $this->_tpl_vars['bIsProfile']): ?>
<div style="padding:8px; font-size:11pt; font-weight:bold; letter-spacing:2px; text-align:center;">
<?php if ($this->_tpl_vars['sCategoryTitle'] != ""): ?>
	<?php echo $this->_tpl_vars['sCategoryTitle']; ?>

	<?php if ($this->_tpl_vars['sType'] != ""): ?>
		:
	<?php endif;  endif;  if ($this->_tpl_vars['sType'] != ""): ?>
	<?php echo smarty_function_language(array('text' => "Mod_Video.type.".($this->_tpl_vars['sType'])), $this);?>

<?php endif; ?>
</div>
<table style="width:100%;" cellpadding="0" cellspacing="8">
<tr>
<td style="width:75%; vertical-align:top; text-align:center;">
<?php endif; ?>

<div style="text-align:center;">
<?php if (count ( $this->_tpl_vars['aItems'] ) == 0): ?>
<div style="font-size:10pt;">
	<?php echo smarty_function_language(array('text' => 'Mod_Video.no_videos_found'), $this);?>

</div>
<?php else: ?>
<div style="text-align:left;">
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['sRootPath'])."/_blocks/pager_nav_button.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</div>
<table style="margin:auto; text-align:left;" cellpadding="8" cellspacing="8">
<tr>
<?php $_from = $this->_tpl_vars['aItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['iKey'] => $this->_tpl_vars['aItem']):
?>
<td style="width:122px; vertical-align:top;">
	<?php if ($this->_tpl_vars['bIsAdmins'] && $this->_tpl_vars['aItem']['reported']): ?>
	<b><?php echo $this->_tpl_vars['aItem']['reported']; ?>
</b>
	<br />
	<?php endif; ?>
	<div style="width:120px;">
    <table style="margin-left:auto;margin-right:auto;vertical-align;top;">
    <tr>
    <td>
	<div class="wrap1">
		<div class="wrap2">
        	<div class="wrap3">
            	<div class="wrap4">
                	<div class="wrap5">
                		<a href="<?php echo smarty_function_url(array('link' => 'public.videos','id' => $this->_tpl_vars['aItem']['vid_id'],'foxseotitle' => $this->_tpl_vars['aItem']['vid_title']), $this);?>
">
						<?php echo smarty_function_img(array('max_width' => '120','src' => ($this->_tpl_vars['sGImageUrl']).($this->_tpl_vars['aItem']['vid_id']).".jpg",'src_def' => "design/pic/noimage_120.jpg",'alt' => "",'id' => 'mainimage'), $this);?>

						</a>
					 </div>
					</div>
				</div>
			</div>
		</div>
	</td>
	</tr>
	</table>
	<div style="font-size:9pt; font-weight:bold;">
		<a href="<?php echo smarty_function_url(array('link' => 'public.videos','id' => $this->_tpl_vars['aItem']['vid_id'],'foxseotitle' => $this->_tpl_vars['aItem']['vid_title']), $this);?>
">
			<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['aItem']['vid_title'])) ? $this->_run_mod_handler('process_code', true, $_tmp) : smarty_modifier_process_code($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>

		</a>
		<?php if ($this->_tpl_vars['aItem']['duration']): ?><div style="font-size:8pt;"><?php echo ((is_array($_tmp=$this->_tpl_vars['aItem']['duration'])) ? $this->_run_mod_handler('video_time', true, $_tmp) : smarty_modifier_video_time($_tmp)); ?>
</div><?php endif; ?>
	</div>
	<br />
	<?php echo smarty_function_language(array('text' => 'Mod_Video.from_user'), $this);?>
: <a href="<?php echo smarty_function_url(array('link' => 'public.user','name' => $this->_tpl_vars['aItem']['user']), $this);?>
"><?php echo $this->_tpl_vars['aItem']['user']; ?>
</a>
	<br />
	<?php echo smarty_function_language(array('text' => 'Mod_Video.views'), $this);?>
: <?php echo $this->_tpl_vars['aItem']['vid_total']; ?>

	<br />
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['sRootPath'])."/_blocks/videostars.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	<br />
	<?php echo $this->_tpl_vars['aItem']['vid_rating_count']; ?>
 <?php echo smarty_function_language(array('text' => 'Mod_Video.ratings'), $this);?>

	<?php if ($this->_tpl_vars['bIsAdmins']): ?>
	<div style="padding-top:6px;">
		[ <a href="<?php echo smarty_function_url(array('link' => 'current','dvideo' => $this->_tpl_vars['aItem']['vid_id']), $this);?>
"><?php echo smarty_function_language(array('text' => 'Mod_Video.delete'), $this);?>
</a> ]
		<br />
		[
		<span id="feature_content_<?php echo $this->_tpl_vars['aItem']['vid_id']; ?>
"><a href="javascript:void(0);" onclick="xajax_video<?php if ($this->_tpl_vars['aItem']['featured']): ?>Remove<?php else: ?>Add<?php endif; ?>Feature('<?php echo $this->_tpl_vars['aItem']['vid_id']; ?>
', 'feature_content_<?php echo $this->_tpl_vars['aItem']['vid_id']; ?>
');"><?php if ($this->_tpl_vars['aItem']['featured']):  echo smarty_function_language(array('text' => 'Mod_Video.remove_feature'), $this); else:  echo smarty_function_language(array('text' => 'Mod_Video.feature'), $this); endif; ?></a></span>
		]
		<?php if ($this->_tpl_vars['iHotVideo'] != $this->_tpl_vars['aItem']['vid_id']): ?>
		<div id="hot_video_<?php echo $this->_tpl_vars['aItem']['vid_id']; ?>
">
		[ <a href="javascript:void(0);" onclick="xajax_videoHotAdd('<?php echo $this->_tpl_vars['aItem']['vid_id']; ?>
', 'hot_video_<?php echo $this->_tpl_vars['aItem']['vid_id']; ?>
');"><?php echo smarty_function_language(array('text' => 'Mod_Video.hot_video'), $this);?>
</a> ]
		</div>
		<?php endif; ?>
		<?php if ($this->_tpl_vars['bIsAdmins'] && $this->_tpl_vars['aItem']['reported']): ?>
		[ <a href="<?php echo smarty_function_url(array('link' => 'current','rmreport' => $this->_tpl_vars['aItem']['vid_id']), $this);?>
" onclick="if ( !sure('<?php echo smarty_function_language(array('text' => 'Mod_Language.are_you_sure'), $this);?>
') ) return false;"><?php echo smarty_function_language(array('text' => 'Mod_Video.ignore_report'), $this);?>
</b></a> ]
		<?php endif; ?>
	</div>
	<?php endif; ?>

	</div>
</td>
<?php if ($this->_tpl_vars['iKey'] % 4 == 3): ?>
</tr>
<tr>
	<td colspan="3">
		<div style="padding:4px;" class="border13"></div>
		<br />
		<br />
	</td>
</tr>
<tr>
<?php endif;  endforeach; endif; unset($_from); ?>
</tr>
</table>
<div style="text-align:left;">
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['sRootPath'])."/_blocks/pager_nav_button.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</div>
<?php endif; ?>
</div>

<?php if (! $this->_tpl_vars['bIsProfile']): ?>
</td><td style="width:25%; vertical-align:top; font-size:10pt;">

	<?php echo '
	<script type="text/javascript" src="design/js/jquery.js"></script>
	<script type="text/javascript" src="design/js/jquery.corner.js"></script>
	<script type="text/javascript">
		$(document).ready(function()
		{
		    $(\'#rounded_category\').corner(\'10px\');
		    $(\'#rounded_browse\').corner(\'10px\');
		})

	</script>
	'; ?>


	<span style="font-size:11pt; font-weight:bold;"><?php echo smarty_function_language(array('text' => 'Mod_Video.category.ucfirst'), $this);?>
</span>
	<div style="padding-left:5px;">
		<div class="border13" style="padding:8px;" id="rounded_category">
		<?php $_from = $this->_tpl_vars['aCategories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['aCategory']):
?>
			<div class="list">
			<?php if ($this->_tpl_vars['iListId'] == $this->_tpl_vars['aCategory']['list_id']): ?>
			<img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" />
			<?php endif; ?>
			<a href="<?php echo smarty_function_url(array('link' => 'current','listid' => $this->_tpl_vars['aCategory']['list_id'],'foxseotitle' => $this->_tpl_vars['aCategory']['list_name']), $this);?>
" class="link_item"><?php echo $this->_tpl_vars['aCategory']['list_name']; ?>
</a></div>
		<?php endforeach; endif; unset($_from); ?>
		</div>
	</div>

	<br />
	<br />

	<span style="font-size:11pt; font-weight:bold;"><?php echo smarty_function_language(array('text' => 'Mod_Video.browse.ucfirst'), $this);?>
</span>
	<div style="padding-left:5px;">
		<div class="border13" style="padding:8px;" id="rounded_browse">
		<?php $_from = $this->_tpl_vars['aBrowseLinks']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['aLink']):
?>
			<div class="list">
			<?php if ($this->_tpl_vars['sType'] == $this->_tpl_vars['aLink']): ?>
			<img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" />
			<?php endif; ?>
			<a href="<?php echo smarty_function_url(array('link' => 'current','type' => $this->_tpl_vars['aLink']), $this);?>
" class="link_item"><?php echo smarty_function_language(array('text' => "Mod_Video.type.".($this->_tpl_vars['aLink'])), $this);?>
</a></div>
		<?php endforeach; endif; unset($_from); ?>
		</div>
	</div>

	<br />

	<?php echo smarty_function_module(array('module' => 'Tag','component' => 'List','type' => 'videos'), $this);?>


</td>
<Ytr>
</table>
<?php endif; ?>